package BinaryTree;

/**
 * @author shy_black
 * @date 2019/3/17 13:53
 * @Description:
 */

public class Node {
    Object value;//节点值
    Node leftChild;//左孩子
    Node rightChild;//右孩子
    public Node(Object vlaue) {
        this.value = value;
    }
    public Node(Object value,Node leftChild,Node rightChild) {
        this.value = value;
        this.leftChild = leftChild;
        this.rightChild = rightChild;
    }

    @Override
    public String toString() {
        return "Node{" +
                "value=" + value +
                ", leftChild=" + leftChild +
                ", rightChild=" + rightChild +
                '}';
    }
}
